/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testGUI;

import GUI.Search;
import GUI.Sklad;
import javax.swing.JFrame;
import junit.framework.TestCase;
import model.Database;

/**
 *
 * @author JArik
 */
public class testSklad extends TestCase{

    public testSklad(String name)
    {
        super(name);
    }

    public void testSearchGUI() throws Exception
    {
        Database.connect("dogy", "dogy", "q1w2e3");
        Sklad sklad = new Sklad(null);
        JFrame frame = new JFrame();
        frame.setMinimumSize(sklad.getPreferredSize());
        frame.add(sklad);
        frame.setVisible(true);
        while(frame.isVisible()) { Thread.sleep(100);}
    }

}
